import request from '@/utils/request'

// 获取用户信息
export const userList = (params) => {
  return request({
    url: '/user/list',
    params
  })
}

// 添加用户
export const userAdd = (data) => {
  return request({
    url: '/user/add',
    method: 'post',
    data
  })
}

// 编辑用户
export const userEdit = (data) => {
  return request({
    url: '/user/edit',
    method: 'post',
    data
  })
}

// 删除用户
export const userRemove = (data) => {
  return request({
    url: '/user/remove',
    method: 'post',
    data
  })
}

// 修改用户状态接口

export const userStatus = (data) => {
  return request({
    url: '/user/status',
    method: 'post',
    data
  })
}
